<?php
/*
 * Creado en May 21, 2007
 *
 * creado por: cast
 * proyecto: sitweb
 */
 
function smarty_function_javascript_link($params, &$smarty){
    if (empty($params['source'])) {
        $smarty->trigger_error("assign: missing 'var' parameter");
        return;
    }
    $src= $params['source'];
    $link = VHOST_PREFIX."public/javascript/{$src}";
    $src = "<script type=\"text/javascript\" src=\"{$link}\"></script>";

    return $src; 	
}
?>
